cmake_minimum_required(VERSION 3.19)
project(LearnDataStructure)

set(CMAKE_CXX_STANDARD 11)

#add_executable(SqList main.cpp SqList.cpp SqList.h)
#add_executable(5 5.cpp SqList.cpp SqList.h)
file(GLOB files *.cpp)
foreach (file ${files})
    string(REGEX REPLACE ".+/(.+)\\..*" "\\1" exe ${file})
    add_executable(${exe} ${file} SqList.cpp SqList.h)
endforeach ()